package com.cet.designpatterns.composite;

/**
 * @program: algorithm
 * @description: Leaf角色
 * @author: 陈恩涛
 * @create: 2021-09-12 21:51
 **/
public class Department extends OrganizationComponent{

    public Department(String name, String des) {
        super(name, des);
    }

    @Override
    public void print() {
        System.out.println(getName());
    }
}
